package com.example.passwordmanager;

import android.app.Application;

import androidx.lifecycle.LiveData;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import java.util.Date;

@Entity(tableName = "password_entries")
public class PasswordRepository {
    @PrimaryKey(autoGenerate = true)
    public int id;

    public String title;
    public String website;
    public String username;
    public String encryptedPassword;
    public String notes;
    public Date createdDate;
    public Date lastModifiedDate;

    public PasswordRepository(String title, String website, String username,
                                 String encryptedPassword, String notes) {
        this.title = title;
        this.website = website;
        this.username = username;
        this.encryptedPassword = encryptedPassword;
        this.notes = notes;
        this.createdDate = new Date();
        this.lastModifiedDate = new Date();
    }

    public PasswordRepository(Application application) {
    }

    public LiveData<Object> getPasswordById(int id) {

        return null;
    }
}